package net.huashitong.Project.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.sirdc.modules.core.dao.GenericQuery;
import com.sirdc.modules.core.dao.StringDao;

import net.huashitong.Project.entity.NodeLog;

@Repository
public class NodeLogDao extends StringDao<NodeLog> {
	public List<NodeLog> query(String projectId,String nodeId){
		GenericQuery query = createQuery("obj");
		query.append(" and obj.projectId=:projectId").setParam("projectId", projectId);
		query.append(" and obj.nodeId=:nodeId").setParam("nodeId", nodeId);
		return query.listResult();
	}
}
